/**
 * @Author: ysj
 * @Date: 2019/09/18
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

//获得短信模板列表
export const getSMSTemplateList = params => axios.get(`${SERVER.DMSCLOUD_SYSBASEDATA}/smsTemplate/qrySmsTemplate`, { params });
//删除短信模板
export const deleteSMSTemplate = params => axios.delete(`${SERVER.DMSCLOUD_SYSBASEDATA}/smsTemplate/delSmsTemplate`, { params });
//新增短信模板
export const addTemplate = params => axios.post(`${SERVER.DMSCLOUD_SYSBASEDATA}/smsTemplate/saveSmsTemplate`, params);
//编辑短信模板
export const editTemplate = params => axios.post(`${SERVER.DMSCLOUD_SYSBASEDATA}/smsTemplate/updateSmsTemplate`, params);
//根据关爱类型获取变量
export const queryCareTypes = params => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/careTypeRelation/queryCareTypes`, { params });
//根据模板类型获得短信模板
export const templateType = params => axios.get(`${SERVER.DMSCLOUD_SYSBASEDATA}/smsTemplate/getBySmsTemplateType`, { params });
